package com.bingxue.edu.management.shop.model.req;

import com.bingxue.edu.common.enums.CommonStatusEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 财务帐户修改请求
 */
@Data
@Schema(description = "财务帐户修改请求")
public class FinAccountUpdateReq {

    @Schema(description = "账户名称")
    @NotBlank(message = "账户名称不能为空")
    @Length(max = 32, message = "账户长度不能超过 {max} 个字符")
    private String name;

    @Schema(description = "账户")
    @NotBlank(message = "账户不能为空")
    @Length(max = 32, message = "账户长度不能超过 {max} 个字符")
    private String account;

    @Schema(description = "备注")
    @Length(max = 255, message = "账户长度不能超过 {max} 个字符")
    private String remark;

    @Schema(description = "状态")
    @NotNull(message = "状态不能为空")
    private CommonStatusEnum status;
}
